package cn.lzy.demo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description
 * @Author lzy
 * @Date 2023/12/6 16:50
 * @Version
 **/
public class TestDemoJava {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JavaConfig.class);
        UserController controller = ctx.getBean(UserController.class);
        System.out.println("controller.hello() = " + controller.hello());

    }
}
